package com.ruoyi.auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(contextId = "remoteWxLoginService", url = "https://api.weixin.qq.com/sns/jscode2session", name = "remoteWxLoginService")
public interface RemoteWxLoginService {

    @GetMapping("")
    public String login(@RequestParam("appid")String appId,
                                     @RequestParam("secret") String secret,
                                     @RequestParam("js_code") String jsCode,
                                     @RequestParam("grant_type") String grantType);

}
